import type { PageModuleTypes } from '../types/index';

/** 管理员相关功能(非全)
 * @description 部分功能管理模块在功能独立分包中(如活动管理/供需管理)
 */
const modules: PageModuleTypes[] = [
  {
    path: 'memberManage',
    name: 'memberManage',
    navigationStyle: 'custom',
    navigationBarTitleText: '会员管理',
    enablePullDownRefresh: true,
    children: [
      {
        path: 'memberSet',
        name: 'memberSet',
        navigationStyle: 'custom',
        navigationBarTitleText: '会员设置',
      },
      {
        path: 'memberAdd',
        name: 'memberAdd',
        navigationStyle: 'custom',
        navigationBarTitleText: '添加会员',
      },
      {
        path: 'personInfo',
        name: 'personInfo',
        navigationStyle: 'custom',
        navigationBarTitleText: '人员信息',
        enablePullDownRefresh: true,
        backgroundColor: '#f5f5f5',
        backgroundColorTop: '#f5f5f5',
        backgroundColorBottom: '#f5f5f5',
      },
      {
        path: 'personAdd',
        name: 'personAdd',
        navigationStyle: 'custom',
        navigationBarTitleText: '添加',
      },
      {
        path: 'payInfo',
        name: 'payInfo',
        navigationStyle: 'custom',
        navigationBarTitleText: '缴费信息',
      },
      {
        path: 'payDetail',
        name: 'payDetail',
        navigationStyle: 'custom',
        navigationBarTitleText: '缴费详情页',
      },
      {
        path: 'attachmentManager',
        name: 'attachmentManager',
        navigationStyle: 'custom',
        navigationBarTitleText: '附件管理',
        enablePullDownRefresh: true
      }
    ],
  },
  {
    path: 'memberAudit',
    name: 'memberAudit',
    navigationStyle: 'custom',
    navigationBarTitleText: '会员审核',
    enablePullDownRefresh: true,
    backgroundColor: '#f5f5f5',
  },
  {
    path: 'memberApplyFormAudit',
    name: 'memberApplyFormAudit',
    navigationStyle: 'custom',
    navigationBarTitleText: '入会资料审核',
    backgroundColor: '#f5f5f5',
  },
  {
    path: 'memberInfoApplyAudit',
    name: 'memberInfoApplyAudit',
    navigationStyle: 'custom',
    navigationBarTitleText: '资料变更审核',
    backgroundColor: '#f5f5f5',
  },
  {
    path: 'membershipInfo',
    name: 'adminMembershipInfo',
    navigationStyle: 'custom',
    navigationBarTitleText: '入会信息',
    backgroundColor: '#f5f5f5',
  },
  {
    path: 'membershipCard',
    name: 'membershipCard',
    navigationStyle: 'custom',
    navigationBarTitleText: '会员证',
    backgroundColor: '#f5f5f5',
  },
  {
    path: 'intendedMembers',
    name: 'intendedMembers',
    navigationStyle: 'custom',
    navigationBarTitleText: '意向会员',
    backgroundColor: '#f5f5f5',
    enablePullDownRefresh: true,
    children: [
      {
        path: 'intendedDetails',
        name: 'intendedDetails',
        navigationStyle: 'custom',
        navigationBarTitleText: '意向详情',
        backgroundColor: '#f5f5f5',
      },
      {
        path: 'accessRecord',
        name: 'accessRecord',
        navigationStyle: 'custom',
        navigationBarTitleText: '访问记录',
        backgroundColor: '#f5f5f5',
      },
    ],
  },
  {
    path: 'duesSet',
    name: 'duesSet',
    navigationStyle: 'custom',
    navigationBarTitleText: '入会会费设置',
  },
  {
    path: 'memberDuesAudit',
    name: 'memberDuesAudit',
    navigationStyle: 'custom',
    navigationBarTitleText: '凭证审核',
  },
  {
    path: 'memberRenewAudit',
    name: 'memberRenewAudit',
    navigationStyle: 'custom',
    navigationBarTitleText: '凭证审核',
  },
  {
    path: 'memberRenewSet',
    name: 'memberRenewSet',
    navigationStyle: 'custom',
    navigationBarTitleText: '续费设置',
  },
  {
    path: 'contactReview',
    name: 'contactReview',
    navigationBarTitleText: '人脉审核 ',
    navigationStyle: 'custom',
    enablePullDownRefresh: true,
  },
  {
    path: 'reviewDetails',
    name: 'reviewDetails',
    navigationBarTitleText: '审核详情 ',
    navigationStyle: 'custom',
  },
  {
    path: 'photosManagement',
    name: 'photosManagement',
    navigationBarTitleText: '相册管理 ',
    navigationStyle: 'custom',
    children: [
      {
        path: 'addPhotos',
        name: 'addPhotos',
        navigationStyle: 'custom',
        navigationBarTitleText: '新建相册',
      },
      {
        path: 'photosDetails',
        name: 'photosDetails',
        navigationStyle: 'custom',
        navigationBarTitleText: '相册详情',
      },
      {
        path: 'photosGroup',
        name: 'photosGroup',
        navigationStyle: 'custom',
        navigationBarTitleText: '分组管理',
      },
      {
        path: 'addPhotosSuccess',
        name: 'addPhotosSuccess',
        navigationStyle: 'custom',
        navigationBarTitleText: '新建相册',
      },
    ],
  },
  {
    path: 'messageManagement',
    name: 'messageManagement',
    navigationBarTitleText: '消息管理 ',
    navigationStyle: 'custom',
    children: [
      {
        path: 'addMessage',
        name: 'addMessage',
        navigationStyle: 'custom',
        navigationBarTitleText: '新建消息',
      },
      {
        path: 'selectUserList',
        name: 'selectUserList',
        navigationStyle: 'custom',
        navigationBarTitleText: '选择接收人 ',
      },
      {
        path: 'filtrateUser',
        name: 'filtrateUser',
        navigationStyle: 'custom',
        navigationBarTitleText: '分类选择 ',
      },
      {
        path: 'selectedUserList',
        name: 'selectedUserList',
        navigationStyle: 'custom',
        navigationBarTitleText: '已选名单 ',
      },
      {
        path: 'messageDetails',
        name: 'messageDetails',
        navigationStyle: 'custom',
        navigationBarTitleText: '消息详情 ',
      },
      {
        path: 'messageSendResult',
        name: 'messageSendResult',
        navigationStyle: 'custom',
        navigationBarTitleText: '发送结果 ',
      },
      {
        path: 'messageCustomPage',
        name: 'messageCustomPage',
        navigationStyle: 'custom',
        navigationBarTitleText: '消息详情',
      }
    ]
  },
  {
    path: 'paymentManagement',
    name: 'paymentManagement',
    navigationBarTitleText: '缴费管理',
    navigationStyle: 'custom',
    enablePullDownRefresh: true,
    children: [
      {
        path: 'paymentInfoDetails',
        name: 'paymentInfoDetails',
        navigationBarTitleText: '缴费详情',
        navigationStyle: 'custom'
      }
    ]
  }
];

export default modules;
